package com.carryGo.entity;

/**
 * ClassName:commodity
 * package:guoban
 * Desription:
 *
 * @Date:2020/8/26 20:20
 * @Author: 邓攀
 */
public class Commodity {

    private int id;//编号
    private String commName;//商品名
    private double price;//价格
    private String unit;//单位
    private String type;//类型
    private String commInform;//信息
    private String pic;//图片
    private String businessName;//商家名

    public Commodity() {
    }

    public Commodity(String commName, double price, String unit, String type, String commInform, String pic, String businessName) {
        this.commName = commName;
        this.price = price;
        this.unit = unit;
        this.type = type;
        this.commInform = commInform;
        this.pic = pic;
        this.businessName = businessName;
    }

    public Commodity(int id, String commName, double price, String unit, String type, String commInform, String pic, String businessName) {
        this.id = id;
        this.commName = commName;
        this.price = price;
        this.unit = unit;
        this.type = type;
        this.commInform = commInform;
        this.pic = pic;
        this.businessName = businessName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public double getPrice() {
        return price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCommInform() {
        return commInform;
    }

    public void setCommInform(String commInform) {
        this.commInform = commInform;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "id=" + id +
                ", commName='" + commName + '\'' +
                ", price=" + price +
                ", unit='" + unit + '\'' +
                ", type='" + type + '\'' +
                ", commInform='" + commInform + '\'' +
                ", pic='" + pic + '\'' +
                ", businessName='" + businessName + '\'' +
                '}';
    }
}
